package com.lvtongka.app.ui.qr.bean

data class PaymentMerchantRequest(
    val shop_static_qr_code: String,
    val pay_amt: Int,
    val longitude: String?,
    val latitude: String?,
    val password: String,
    val pay_cfg: PayCfg,
    val txn_type: String = "68"
)

data class PayCfg(
    val member_type: String,
    val member_id: String,
    val kinship_id: String? = ""
)

data class PaymentCouponRequest(
    val shop_static_qr_code: String,
    val pay_amt: Int,
    val pay_cfg: PayCfgCoupon,
    val txn_type: String = "43"
)

data class PayCfgCoupon(
    val member_id: String,
    val coupon_no: String,
    val balance: Double,
    val type_id: String
)

data class SendCodeNotCellRequest(
    val txn_type: String = "10"
)


data class PaymentAppRequest(
    val order_id: String,
    val term_id: String,
    val password: String? = null,
    val sms_verify_code: String? = null,
    val order_type: String = "5",
    val txn_type: String = "24"
)


data class PaymentAppCancelRequest(
    val order_id: String,
    val term_id: String,
    val order_type: String = "5",
    val txn_type: String = "25"
)

data class PaymentAppResponse(
    val code: Int,
    val msg: String,
    val data: PaymentApp
)
//{
//    "member_id": "10020",
//    "note": "测试收款",
//    "pay_at": "2024-12-20 16:01:17",
//    "pay_result_msg": "支付成功",
//    "amt": 100,
//    "refund_amt": 0,
//    "term_id": "888810100001001",
//    "shop_name": "瑞和泰-武进店",
//    "pay_result_code": "2",
//    "logo_img": "/merchant-logo/瑞和泰.jpg",
//    "expire_flag": "0",
//    "verify_sms_flag": "0",
//    "verify_password_flag": "0",
//    "expire_at": "2024-12-20 16:06:08",
//    "create_at": "2024-12-20 16:01:08",
//    "order_id": "29AFF33D08D69ABFE060A8C0C90110FE",
//    "order_type": "5"
//}
data class PaymentApp(
    val order_id: String,
    val term_id: String,
    val note: String,
    val pay_at: String,
    val pay_result_msg: String,
    val amt: Int,
    val refund_amt: Int,
    val shop_name: String,
    val pay_result_code: String,
    val logo_img: String,
    val expire_flag: String,
    val verify_sms_flag: String,
    val verify_password_flag: String,
    val expire_at: String,
    val create_at: String,
    val order_type: String
)

data class GenerateQRCodeRequest(
    val coupon_no: String,
    val txn_type: String = "34"
)

data class GenerateQRCodeResponse(
    val code: Int,
    val msg: String,
    val data: GenerateQRCode
)

/*
qr_code
creatc at
expire at
 */
data class GenerateQRCode(
    val qr_code: String,
    val create_at: String,
    val expire_at: String
)